
import { defineStore } from 'pinia'
interface item{
    label?:string,
    value?:string,
    children?:item[]
}
export const useDepartmentSelectStore = defineStore('DepartmentSelect', {
    state: () => ({
        departmentSelect: [] as item[],
        disabled:false
    }),
    actions: {
        setDepartmentSelect(data:item[]){
            this.departmentSelect = data
        },
        setDisabled(boolean:boolean){
            this.disabled=boolean
        }
    },
    getters: {
        
    },
}
)